#继承的练习题
#创建一个GrandPa爷爷类
class GrandPa:
    name = "大头爷爷"
    hobby = "旅游"

#创建一个Facther类并且继承GrandPa类
class Father(GrandPa):
    name = "大头爸爸"
    age = 39

#创建一个Son类并且继承Father类
class Son(Father):
    name = "大头儿子"

son = Son()
print(f"son.name={son.name} , son.age={son.age} , son.hobby= {son.hobby}")
